import request from '@/utils/request'

// 获取用户地址信息
const getAddressList = () => {
  return request({
    url: '/api/user/userAddress/auth/findUserAddressList'
  })
}

// 10. 获取订单交易页信息
const reqOrderInfo = () => {
  return request({
    url: '/api/order/auth/trade'
  })
}

// 提交订单
const reqSubmitOrder = (tradeNo, data) => {
  return request({
    url: `/api/order/auth/submitOrder?tradeNo=${tradeNo}`,
    method: 'post',
    data
  })
}

export { getAddressList, reqOrderInfo, reqSubmitOrder }
